//
//  BaseViewController.h
//  CreativeLife
//
//  Created by qianfeng on 15-6-11.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFNetworking.h"
#import "JHRefresh.h"
#import "CreativeModel.h"
#import "MyCell.h"

@interface BaseViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>

{
    UITableView *_tableView;
    NSMutableArray *_dataArr;
    
    NSInteger _currentPage;
    BOOL _isRefresh;
    BOOL _isLoadMore;
    AFHTTPRequestOperationManager *_manager;
}
@property(nonatomic,strong)UITableView *tableView;
@property(nonatomic,strong)NSMutableArray *dataArr;
@property(nonatomic)BOOL isRefresh;
@property(nonatomic)BOOL isLoadMore;

@property(nonatomic,copy)NSString *resquestUrl;
@property(nonatomic,copy)NSString *category;


-(void)loadDataWithUrl:(NSString *)url;
-(void)creatRefresh;
-(void)endRefresh;
@end
